#ifndef MYWEBENGINE_H
#define MYWEBENGINE_H
#include <QWebEngineView>
#include <QIcon>

namespace Ui {
   class MyMyWebEngine;
}
class MyWebEngine:public QWebEngineView
{
    Q_OBJECT
public:
    explicit MyWebEngine(QWidget *parent = nullptr);
protected:
    QWebEngineView * createWindow(QWebEnginePage::WebWindowType type);

private slots:
    void changeIcon(QIcon icon);
    void changeUrl();
private:
    int index;
    MyWebEngine* webengine;
};

#endif // MYWEBENGINE_H
